home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 3.3 KB | 124 lines | [TEXT/MPS ] |
- /*
- File: HIPanels.idl
-
- Contains: Root class for embeddable prepackaged toolbox HI elements.
-
- Version: Technology: System 8.0
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1995-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
- */
-
-
- #ifndef __HIPANELS_IDL__
- #define __HIPANELS_IDL__
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- #include <Dialogs.idl>
- #include <Collections.idl>
- #include <Controls.idl>
- #include <Drag.idl>
- #include <Events.idl>
- #include <Lists.idl>
- #include <Quickdraw.idl>
- #include <TextEdit.idl>
- #include <TextObjects.idl>
- #include <Types.idl>
- #include <Icons.idl>
- #include <Menus.idl>
-
- #include <HIObjects.idl>
- #include <HIPanelTypes.idl>
-
-
- interface HIEmbeddingPanel;
- interface HIWindow;
-
- /* ########################################################################
-
- HIPanel
-
- the base class panel
-
- ######################################################################## */
- interface HIPanel : HIObject
- {
- // ======================================================
- // Attributes
- // ======================================================
- HIEmbeddingPanel GetEmbeddingParent ();
-
- // ======================================================
- // Public Methods
- // ======================================================
- // • initialization / disposal •
- // programmatically initialize the panel
- OSStatus InitPanel (in RefLabel identifier, in HIWindow window, in Rect bounds);
-
- // • Event Handling •
-
- // register interest in a specific type of event
- OSStatus RegisterInterestInAppleEvent (in AEHandlerTableRef table, in AEEventClass eventClass,
- in AEEventID eventID, in HIEventRoutingType eventRouting);
-
-
- // return true if the panel's simple content is valid. For
- // example, a numeric-only edit text panel would return
- // false if the value was non-numeric.
- boolean HasValidContent (); // ••• how to get feedback?
-
- // • Collection Item Inheritance •
- // Collection item inheritance. Try to get a collection
- // item from this panel's collection. If not there, try
- // to get it recursively from its embedding parent's collection
- OSStatus GetDeepCollectionItemData (in CollectionTag tag, in SInt32 id,
- in ByteCount sizeAllowed, out ByteCount sizeReturned, in void *itemData);
-
- // ======================================================
- // Protected Methods
- // Call these methods only from within panel implementation!
- // ======================================================
-
-
- implementation {
-
- passthru C_h = "#include <Collections.h>"
- "#include <Drag.h>"
- "#include <Quickdraw.h>"
- "#include <TextObjects.h>"
- "#include <Types.h>"
- "#include <HIPanelTypes.h>";
-
- passthru C_xh = "#include <Collections.h>"
- "#include <Drag.h>"
- "#include <Quickdraw.h>"
- "#include <TextObjects.h>"
- "#include <Types.h>"
- "#include <HIPanelTypes.h>";
-
- releaseorder: InitPanel,
- GetEmbeddingParent,
- RegisterInterestInAppleEvent,
- SetAdornment,
- GetAdornment,
- HasValidContent,
- GetDeepCollectionItemData,
- reserved0,
- reserved1,
- reserved2,
- reserved3,
- reserved4;
-
- };
- };
-
- #endif
-